import $http from '@/common/request.js'
import pop from '@/common/pop.js'

class Api {
	async createWeddingOrder(follow_v_id) {
		try {
			const response = await $http.post({
				url: '/accountPay/createWeddingOrder',
				data:{
					follow_v_id
				}
			})
			if (response.code != 100) {
				pop.Toast(response.msg)
				throw new Error(response.msg)
			}
			
			return response.data
		} catch (error) {
			throw error
		}
	}
}

export default new Api()